home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98c.txt
/
000107_icon-group-sender _Mon Dec 7 17:49:28 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id RAA20752
for icon-group-addresses; Mon, 7 Dec 1998 17:49:13 -0700 (MST)
Message-Id: <199812080049.RAA20752@baskerville.CS.Arizona.EDU>
Date: Mon, 7 Dec 1998 17:50:17 -0600
From: Clinton Jeffery <jeffery@segfault.cs.utsa.edu>
To: evans@gte.net
CC: icon-group@optima.CS.Arizona.EDU
Subject: Re: Past Keyword / Coexpr Help
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
SW> procedure past(s)
SW> suspend (tab(find(s)),match(s))
SW> end
NL> procedure past(s1, s2, i1, i2)
NL> suspend find(s1, s2, i1, i2) + *s1
NL> end
MEvans> I like Steve Wampler's answer. Since "find" is a generator,
MEvans> presumably this function will also behave as a generator. I would
MEvans> still lobby for the "past" keyword, but no complaints.
Gee, both of these solutions behave just fine as a generator. Nevin's
looks more efficient and works outside of string scanning environments. :-)
For the record, I've wanted a past() function before, as well. My code is
often riddled with find(s) + *s ...
Clint